package com.csist.service.bo.impl;

import com.csist.mapper.bo.UserInfoBoMapper;
import com.csist.pojo.bo.UserInfoBo;
import com.csist.service.bo.UserInfoBoService;
import com.csist.util.SqlSessionUtil;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

/**
 * @ClassName UserInfoBoServiceImpl
 * @Description 【自行描述】
 * @Author cn
 * @Date 2024/6/26 17:09
 * @Version 1.0
 */
public class UserInfoBoServiceImpl implements UserInfoBoService {
    private SqlSession sqlSession;
    private UserInfoBoMapper userInfoBoMapper;

    public UserInfoBoServiceImpl() {
        sqlSession = SqlSessionUtil.openSession();
        userInfoBoMapper = sqlSession.getMapper(UserInfoBoMapper.class);
    }

    @Override
    public List<UserInfoBo> selectAllUserInfo() {
        return userInfoBoMapper.selectAllUserInfo();
    }

    @Override
    public UserInfoBo getUserInfoById(int id) {
        return userInfoBoMapper.getUserInfoById(id);
    }
}
